package com.hdd.art.biz.show.service.impl;

import com.hdd.art.biz.show.entity.MemberArt;
import com.hdd.art.biz.show.mapper.MemberArtMapper;
import com.hdd.art.biz.show.service.MemberArtService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fang
 * @since 2021-07-17
 */
@Service
public class MemberArtServiceImpl extends ServiceImpl<MemberArtMapper, MemberArt> implements MemberArtService {

    @Override
    public void insert(String userId, String artId) {
        MemberArt art =  new MemberArt();
        art.setArtId(artId);
        art.setUserId(userId);
        baseMapper.insert(art);
    }
}
